def sum_100():
    return sum(range(1, 101))
print(sum_100())

def fact(n):
    if n == 1:
        return 1
    return n * fact(n - 1)

total = 0
for i in range(3, 21):
    total += fact(i)
print(total)